import axios from "./config"
import qs from "querystring"

// 登录
export const login = (data) =>  {
    return axios.request({
        method: "post",
        url: "/login",
        header: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
        body: qs.stringify(data)
    })
}

// 获取首页轮播列表
export const getCarouselImageList = () => {
    return axios.request({
        method: "get",
        url: "/carousel-home"
    })
}